package com.tx.Xpdefect;

import java.util.List;

import org.springframework.stereotype.Component;

import com.rtnBean.DefSumBeen;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@Component
@XStreamAlias("transaction")
public class XpdefectO {
	private String trx_id;
	private String type_id;
	private String rtn_code;
	private String rtn_mesg;

	private Integer def_cnt;
	private String prd_grade; // In ret_prd_info
	private String pv_prd_grade;

	private String new_logic_flg;
	private String prd_seq_grd;
	private String prd_seq_grd_t;
	private String prd_seq_grd_c;
	private Integer act_ng_qty;
	private String own_typ;
	
	// @XStreamImplicit
	// private List<XpdefectOA> oary;

	@XStreamImplicit
	@XStreamAlias("defList")
	private List<DefectInfoBeen2> defList;

	@XStreamImplicit
	@XStreamAlias("def_sum_info")
	private List<DefSumBeen> defSumList;

	public String getPrd_grade() {
		return prd_grade;
	}

	public void setPrd_grade(String prd_grade) {
		this.prd_grade = prd_grade;
	}

	public List<DefSumBeen> getDefSumList() {
		return defSumList;
	}

	public void setDefSumList(List<DefSumBeen> defSumList) {
		this.defSumList = defSumList;
	}

	public Integer getDef_cnt() {
		return def_cnt;
	}

	public void setDef_cnt(Integer def_cnt) {
		this.def_cnt = def_cnt;
	}

	public List<DefectInfoBeen2> getDefList() {
		return defList;
	}

	public void setDefList(List<DefectInfoBeen2> defList) {
		this.defList = defList;
	}

	public String getTrx_id() {
		return trx_id;
	}

	public void setTrx_id(String trx_id) {
		this.trx_id = trx_id;
	}

	public String getType_id() {
		return type_id;
	}

	public void setType_id(String type_id) {
		this.type_id = type_id;
	}

	public String getRtn_code() {
		return rtn_code;
	}

	public void setRtn_code(String rtn_code) {
		this.rtn_code = rtn_code;
	}

	public String getRtn_mesg() {
		return rtn_mesg;
	}

	public void setRtn_mesg(String rtn_mesg) {
		this.rtn_mesg = rtn_mesg;
	}

	public String getPv_prd_grade() {
		return pv_prd_grade;
	}

	public void setPv_prd_grade(String pv_prd_grade) {
		this.pv_prd_grade = pv_prd_grade;
	}

	public String getNew_logic_flg() {
		return new_logic_flg;
	}

	public void setNew_logic_flg(String new_logic_flg) {
		this.new_logic_flg = new_logic_flg;
	}

	public String getPrd_seq_grd() {
		return prd_seq_grd;
	}

	public void setPrd_seq_grd(String prd_seq_grd) {
		this.prd_seq_grd = prd_seq_grd;
	}

	
	public String getPrd_seq_grd_t() {
		return prd_seq_grd_t;
	}

	public void setPrd_seq_grd_t(String prd_seq_grd_t) {
		this.prd_seq_grd_t = prd_seq_grd_t;
	}

	public String getPrd_seq_grd_c() {
		return prd_seq_grd_c;
	}

	public void setPrd_seq_grd_c(String prd_seq_grd_c) {
		this.prd_seq_grd_c = prd_seq_grd_c;
	}

	public Integer getAct_ng_qty() {
		return act_ng_qty;
	}

	public void setAct_ng_qty(Integer act_ng_qty) {
		this.act_ng_qty = act_ng_qty;
	}

	public String getOwn_typ() {
		return own_typ;
	}

	public void setOwn_typ(String ownTyp) {
		own_typ = ownTyp;
	}
	
	@Override
	public String toString() {
		return "XpdefectO [trx_id=" + trx_id + ", type_id=" + type_id + ", rtn_code=" + rtn_code + ", rtn_mesg=" + rtn_mesg
				+ ", def_cnt=" + def_cnt + ", prd_grade=" + prd_grade + ", pv_prd_grade=" + pv_prd_grade + ", new_logic_flg="
				+ new_logic_flg + ", prd_seq_grd=" + prd_seq_grd + ", act_ng_qty=" + act_ng_qty + ", defList=" + defList
				+ ", defSumList=" + defSumList + "]";
	}
	
}
